package com.atguigu.boot2.bean;

/**
 * @author 杨林
 * @create 2023-08-21 10:43 星期一
 * description:
 */
public class User {
    
    private String name;
    
    private Integer age;
    
    private Pet per;

    public Pet getPer() {
        return per;
    }

    public void setPer(Pet per) {
        this.per = per;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public User() {
    }

    public User(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public User(String name, Integer age, Pet per) {    
        this.name = name;
        this.age = age;
        this.per = per;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", per=" + per +
                '}';
    }
}
